package com.qianyu.project.web.controller.lyz;

import com.qianyu.project.entity.MaterialClass;
import com.qianyu.project.service.IMaterialClassService;
import com.qianyu.project.utils.Result;
import com.qianyu.project.utils.ResultTool;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author yunsuo
 * @date 2021年2月1日09:21:19
 */
@RestController
@RequestMapping("/MaterialClass")
public class MaterialClassController {
    @Autowired
    private IMaterialClassService materialClassService;

    /**
     * @description
     * @return 包含材料类型的List
     */
    @GetMapping("")
    public Result getMaterialClass(){
        return ResultTool.success(materialClassService.list());
    }






}
